#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QSpinBox>
#include "eview.h"
#include "hexitem.h"
#include "connector.h"
#include <QComboBox>
#include <QLabel>
#include "zookeper.h"
#include "common.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    void createActions();
    void createToolBars();
    void showConnector();
    ~MainWindow();
    HexItem ***hItems;
    QGraphicsTextItem ***texts;
    QGraphicsScene *scene;
    ZooKeeper* zooKeeper;
private slots:
    void itemClicked(QGraphicsItem* item);
    void begin();
    void stop();
    void pause();
    void play();
    void update();
    void quit();
    void populate();
public slots:

private:
    void resetHex();
    int amount;
    EView *view;

    QToolBar *createToolBar,*controlToolBar,*thingToolBar;
    QSpinBox *qSize;

    QAction *actBegin;
    QAction *actStop;
    QAction *actPlay;
    QAction *actPause;
    QAction *actPopulate;
    QTimer *timer;
    QList<Being *> *populist;
    QLabel *nameLabel;
    Connector *connector;
};

#endif // MAINWINDOW_H
